package com.zhou.pojo;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class OutMsgEntity {
	private String ToUserName;	//接收方帐号（收到的OpenID）
	private String FromUserName;	//开发者微信号
	private Long CreateTime;	//消息创建时间 （整型）
	private String MsgType;	//text/image/...
	
	private String Content;	//文本消息内容
	@XmlElementWrapper(name="Image")
	private String[] MediaId;	//图片消息媒体id，可以调用多媒体文件下载接口拉取数据。
	
	private Integer ArticleCount;	//是	图文消息个数，限制为8条以内
	
//	private Articles;是	多条图文消息信息，默认第一个item为大图,注意，如果图文数超过8，则将会无响应
	//图文列表明细
	@XmlElementWrapper(name="Articles")
	private ArticleItem[] item;
	
	
	
	public Integer getArticleCount() {
		return ArticleCount;
	}
	public void setArticleCount(Integer articleCount) {
		ArticleCount = articleCount;
	}
	
	public ArticleItem[] getItem() {
		return item;
	}
	public void setItem(ArticleItem[] item) {
		this.item = item;
	}
	public String getToUserName() {
		return ToUserName;
	}
	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}
	public String getFromUserName() {
		return FromUserName;
	}
	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}
	public Long getCreateTime() {
		return CreateTime;
	}
	public void setCreateTime(Long createTime) {
		CreateTime = createTime;
	}
	public String getMsgType() {
		return MsgType;
	}
	public void setMsgType(String msgType) {
		MsgType = msgType;
	}
	public String getContent() {
		return Content;
	}
	public void setContent(String content) {
		Content = content;
	}
	public String[] getMediaId() {
		return MediaId;
	}
	public void setMediaId(String[] mediaId) {
		MediaId = mediaId;
	}

	
	
}
